import request from '@/utils/request'

// 查询药品库存改变记录列表
export function listMedStockRecord(query) {
  return request({
    url: '/medicine/medStockRecord/list',
    method: 'get',
    params: query
  })
}

// 查询药品库存改变记录详细
export function getMedStockRecord(id) {
  return request({
    url: '/medicine/medStockRecord/' + id,
    method: 'get'
  })
}

// 新增药品库存改变记录
export function addMedStockRecord(data) {
  return request({
    url: '/medicine/medStockRecord',
    method: 'post',
    data: data
  })
}

// 修改药品库存改变记录
export function updateMedStockRecord(data) {
  return request({
    url: '/medicine/medStockRecord',
    method: 'put',
    data: data
  })
}

// 删除药品库存改变记录
export function delMedStockRecord(id) {
  return request({
    url: '/medicine/medStockRecord/' + id,
    method: 'delete'
  })
}

// 导出药品库存改变记录
export function exportMedStockRecord(query) {
  return request({
    url: '/medicine/medStockRecord/export',
    method: 'get',
    params: query
  })
}